dise5

registrazione dati su file con terminal table

# file per tabella dati a due colonne,scritto con notes
# duedati.dat
1	6
2	3	
3	8
4	4
5	9
6	5
plot 'c:\provagnu\duedati.dat' using 1:2
pause -1

programma incollato su gnuplot>

 


 

set terminal table

set output 'c:\provagnu\duedatiz.table'

plot 'c:\provagnu\duedati.dat' using 1:2

pause -1

 

file duedatiz.table richiamato con inserisci file
crea 2 (plot) 3 (splot) colonne di dati numerici e una colonna con simbolo (i se compreso nel range),(o se fuori range) (u se indefinito)

I

#Curve 0, 10 points
#x y type (i,o,u)
1 2 i
2 4 i
3 3 i
4 8 i
5 2 i
6 9 i
7 4 i
8 7 i
9 5 i
10 9 i

 

file per tabella dati a tre colonne,scritto con notes
tredati.dat

 

# tabella dati da usare per terminal table
# tredati.dat
1	5	8
2	7	15
3	8	6
4	4	12
5	8	14
6	12	5
set xrange [0:10]
set yrange [0:10]
plot 'c:\provagnu\tredati.dat' using 1:3 with lines 2
pause -1

programma incollato su gnuplot>

 


set terminal table

set output 'c:\provagnu\tredatiz.table'

plot 'c:\provagnu\tredati.dat' using 1:3

pause -1

file tredatiz.table richiamato con inserisci file

#Curve 0, 7 points
#x y type
1 8 i
2 15 i
3 6 i
4 12 i
5 14 i
6 5 i
0 0 u

set xrange[0:10]
set yrange[0:10]
set terminal table
set output 'c:\provagnu\tredati2z.table'
plot 'c:\provagnu\tredati.dat' using 1:3
pause -1

 

file tredati2z.table richiamato con inserisci file (notare che essendo i range 0:10 ,alcuni valori sono fuori range :o)

#Curve 0, 7 points
#x y type
1 8 i
2 15 o
3 6 i
4 12 o
5 14 o
6 5 i
0 0 u

stampa grafico memorizzato in file tredati2z.table

plot 'c:\provagnu\tredati2z.table' using 1:2